﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;

namespace FinanceAPI.Model
{
    /// <summary>
    /// 凭证项目表
    /// </summary>
    [Serializable]
    [Description("凭证项目表")]
    [Table("Pd_Vourcher_Project")]
    public class PdEntityVourcherProject : AggregateRoot
    {
        /// <summary>
        /// 集团Id
        /// </summary>
        [MaxLength(50)]
        public string GroupId { get; set; }

        /// <summary>
        /// 集团名称
        /// </summary>
        [MaxLength(100)]
        public string GroupName { get; set; }

        /// <summary>
        /// 公司代码(唯一)
        /// </summary>
        [MaxLength(50)]
        public string CompanyCode { get; set; }

        /// <summary>
        /// 公司名称
        /// </summary>
        [MaxLength(100)]
        public string CompanyName { get; set; }

        /// <summary>
        /// 公司唯一代码
        /// </summary>
        [MaxLength(50)]
        public string CompanyUniqueId { get; set; }

        /// <summary>
        /// 项目编码
        /// </summary>
        [MaxLength(50)]
        public string ProjectCode { get; set; }

        /// <summary>
        /// 项目名称
        /// </summary>
        [MaxLength(50)]
        public string ProjectName { get; set; }

        /// <summary>
        /// 项目类型
        /// </summary>
        [MaxLength(50)]
        public string ProjectType { get; set; }

        /// <summary>
        /// 明细项目
        /// </summary>
        [MaxLength(50)]
        public string DetailItem { get; set; }

        /// <summary>
        /// 系统生成
        /// </summary>
        [MaxLength(50)]
        public string SystemGeneration { get; set; }

        /// <summary>
        /// 阀值
        /// </summary>
        public decimal Threshold { get; set; }

        /// <summary>
        /// 累计标识
        /// </summary>
        public int CountFlag { get; set; }

        /// <summary>
        /// 大项目编码
        /// </summary>
        public string BigProjectCode { get; set; }

        /// <summary>
        /// 大项目名称
        /// </summary>
        public string BigProjectName { get; set; }
    }
}
